package com.dgut.legalservice.service;

import com.dgut.legalservice.domain.attachment.Attachment;
import com.dgut.legalservice.domain.attachment.AttachmentGroup;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IAttachmentService {

    public int addAttachment(Attachment attachment);
    public int addAttachmentGroup(AttachmentGroup attachmentGroup);
    public int addAttachmentsAndGroup(List<Attachment> attachments, AttachmentGroup attachmentGroup);

    public Attachment findById(Integer id);
    public List<Attachment> findByGroupId(Integer groupId);

    public int updateAttachment(Attachment attachment);

    public int deleteAttachment(Integer id);


}
